/**
 * @author Lei
 * @create 2022-05-22 17:26
 */
public class ControllerMoreBook extends Controller {
    public ControllerMoreBook(Library m) {
        super(m);
    }


    public String moreBook(String name,String number){
        try {
            int nextInt = Integer.parseInt(number);
            m.moreBook(name,nextInt);
            return "";
        }catch (UnknownUserException |NotALenderException|  NumberFormatException e){
            return e.getMessage();
        }

    }

}
